package com.miniso.robot.bean;

import com.miniso.robot.feign.RobotFeign;
import lombok.Getter;
import org.springframework.web.multipart.MultipartFile;

import java.util.HashMap;
import java.util.Map;

/**
 * @author guojunwang
 * @date 2021-10-18 21:48
 */
@Getter
public class FileMessage extends Message{

    public String msgtype = "file";
    public Map<String,String> file = new HashMap(8);

    /**
     * 设置文件id
     * {@link RobotFeign#uploadFile} 获取的id
     * @param mediaId
     */
    public void setFile(String mediaId){
        this.file.put("media_id",mediaId);
    }



}
